import json
from config import BASE_DIR
def read_json(name):
    with open(name,encoding="utf8") as f:
        data_list=json.load(f)
        new_list=[]
        for data in data_list:
            emp_data=tuple(data.values())
            new_list.append(emp_data)
        return new_list
if __name__ == '__main__':
    print(read_json(BASE_DIR+"/data/tpshop_longin.json"))
